package com.gxa.modules.mapper.operationsmapper;

import com.gxa.modules.pojo.Contract;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface ContractMapper {

    List<Contract> selectForPage(@Param("index") int index,@Param("size") int size,
                                 @Param("tenantName") String tenantName,
                                 @Param("buildName") String buildName,
                                 @Param("roomName") String roomName,
                                 @Param("property") String property,
                                 @Param("contractStatus") String contractStatus);
    int insert(Contract contract);
    int updateById(Contract contract);
    int deleteById(int id);
    int deleteByPatch(List<Integer> ids);
    Contract selectById(int id);
    int selectCount(@Param("tenantName") String tenantName,
                    @Param("buildName") String buildName,
                    @Param("roomName") String roomName,
                    @Param("property") String property,
                    @Param("contractStatus") String contractStatus);

}
